var pg1 = function() { 
	this.txtEl = $('#loadtxt');
	this.num = 0;
	this.timer = '';
	var that = this;
	this.loadtxt = function(){
		this.timer = setInterval(function(){
			// 将存数组的值放到 标签内
			that.txtEl.html(that.addNum()+'%');
			//判断是不是到100了
			that.num >= 101 ? that.end() : '';
		},10);
	}
	//将计数+1 并且返回 计数余3的结果 #返回的是 0|1|2
	this.addNum = function(){
		return this.num++;
	}
	//加载完成后执行 ： 
	this.end = function(){
		clearInterval(this.timer);
		setTimeout(function(){
			loadComple();
		},400);
		
	}
}

var pg2 = function(){

}
var page1 = new pg1();
page1.loadtxt();